package com.cershy.linyuminiserver.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.cershy.linyuminiserver.constant.DeviceType;
import com.cershy.linyuminiserver.dto.DeviceDto;
import com.cershy.linyuminiserver.entity.Device;

import java.util.List;

public interface DeviceService extends IService<Device>{

    //更新位置
    public void addDeviceLocation(String deviceId, double latitude, double longitude);

    //添加设备
    public Object addDevice(DeviceDto device);

    //查找类型设备
    public Object getDeviceList(DeviceType type, Double x, Double y,Double distance,Integer current);

    public void addAllDeviceLocation();

    void online(String deviceCode);

}
